import request from '@/config/request.js'

// 查用户信息
export const queryUserInfo = data => request.post('/user/myself/info', data)

// 查金币余额
export const queryBalance = data => request.post('/user/myself/balance', data)

// 查消费记录
export const queryUserCoinList = data => request.post(`/user/myself/cost/list?page=${data.pageNum}`, data)

// 查金币充值记录
export const queryOrderCoinList = data => request.post(`/order/myself/coin/list?page=${data.pageNum}`, data)

// 查会员充值记录
export const queryOrderVipList = data => request.post(`/order/myself/vip/list?page=${data.pageNum}`, data)

// 修改用户信息
export const updateUserInfo = data => request.post('/user/myself/update', data)
